package com.jiangjiang.eshop.auth.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName PriorityEntity
 * @Description TODO
 * @Author jhw
 * @Date 2021/4/20 21:24
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode
@TableName("auth_priority")
public class PriorityEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 权限编号
     */
    @TableField(value = "code")
    private String code;
    /**
     * 权限对应的请求url
     */
    @TableField(value = "url")
    private String url;
    /**
     * 权限说明备注
     */
    @TableField(value = "priority_comment")
    private String priorityComment;
    /**
     * 权限类型
     */
    @TableField(value = "priority_type")
    private Integer priorityType;
    /**
     * 父权限id
     */
    @TableField(value = "parent_id")
    private Long parentId;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;
    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;

}
